

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_BUTTON_SENSOR_BLOCK_1608105374761'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let status = this.getFieldValue('status');
          
            Blockly.Arduino.definitions_['include_EXT_BUTTON_SENSOR_BLOCK_1608105374761'] = ``;
            Blockly.Arduino.definitions_['define_EXT_BUTTON_SENSOR_BLOCK_1608105374761'] = `int keypad_pin${pin} = ${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_BUTTON_SENSOR_BLOCK_1608105374761'] = `pinMode(keypad_pin${pin},INPUT);`;
             return  [`digitalRead(keypad_pin${pin}) == ${status}`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        